package com.ruoyi.forum.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Objects;

@TableName("circle_notice_read")
public class CircleNoticeRead {
    @TableId(value = "uid", type = IdType.NONE)
    private String uid;

    private Long readTime;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Long getReadTime() {
        return readTime;
    }

    public void setReadTime(Long readTime) {
        this.readTime = readTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CircleNoticeRead that = (CircleNoticeRead) o;

        if (!Objects.equals(uid, that.uid)) return false;
        return Objects.equals(readTime, that.readTime);
    }

    @Override
    public int hashCode() {
        int result = uid != null ? uid.hashCode() : 0;
        result = 31 * result + (readTime != null ? readTime.hashCode() : 0);
        return result;
    }
}